package com.toycloud.system.mapper.statistic;

import com.toycloud.common.annotation.DataSource;
import com.toycloud.common.enums.DataSourceType;
import com.toycloud.system.domain.feedback.FeedbackAnalysisData;
import com.toycloud.system.domain.statistic.TempProductData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
* @author hlchan
* @description 针对表【temp_product_data】的数据库操作Mapper
* @createDate 2024-11-01 14:21:57
* @Entity generator.com.toycloud.system.mapper.feedback.TempProductData
*/

@DataSource(value = DataSourceType.STATISTIC)
@Repository
public interface TempProductDataMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TempProductData record);

    int insertSelective(TempProductData record);

    TempProductData selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TempProductData record);

    int updateByPrimaryKey(TempProductData record);

    List<TempProductData> selectExistCount(
            @Param("productCodes") List<String> productCodes,
            @Param("startTime") LocalDate startTime,
            @Param("endTime") LocalDate endTime);
}
